package com.bw.finance.eneity.invest;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author lizhengqian
 * @since 2020-08-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class EbankBackPlan implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

    /**
     * 投资ID
     */
    @TableField("INVEST_ID")
    private Long investId;

    /**
     * 还款总期数
     */
    @TableField("BACK_NUM")
    private Integer backNum;

    /**
     * 还款期号
     */
    @TableField("BACK_NO")
    private Integer backNo;

    /**
     * 还款日期
     */
    @TableField("BACK_DATE")
    private Date backDate;

    /**
     * 应还金额
     */
    @TableField("BACK_AMOUNT")
    private BigDecimal backAmount;

    /**
     * 本金金额
     */
    @TableField("CAPITAL")
    private BigDecimal capital;

    /**
     * 利息金额
     */
    @TableField("INTEREST")
    private BigDecimal interest;

    /**
     * 已还金额
     */
    @TableField("AR_AMOUNT")
    private BigDecimal arAmount;

    /**
     * 状态（0：待回款 1：回款中 2：已回款）
     */
    @TableField("STATUS")
    private Integer status;


}
